import { resultSuccess } from '../_util';
import { MockMethod } from 'vite-plugin-mock';

const authCode = () => {
  const result = {
    id: '',
    data: `@image(100x30)`,
  };
  return result;
};
export default [
  {
    url: '/mock-api/captcha/img',
    timeout: 1000,
    method: 'get',
    response: ({}) => {
      return resultSuccess(authCode());
    },
  },
] as MockMethod[];
